package com.hm.cms.domain;

import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.hm.cms.auto.su.BaseDomain;
import com.hm.cms.auto.su.R;
import com.hm.cms.def.ExtLlinkEnum;

import lombok.Getter;
import lombok.Setter;

/**
 * @author shishun.wang
 * @date 2017年10月22日 下午12:23:05
 * @version 1.0
 * @describe 外部链接
 */
@Setter
@Getter
@Document(collection = R.Database.prefix + "EXT_LINK")
@CompoundIndexes({ @CompoundIndex(name = "ext_link,status", def = "{'ext_link': 1, 'status': 1}") })
public class ExtLinkDomain extends BaseDomain {

	private static final long serialVersionUID = 1L;

	/**
	 * 外部链接类型
	 */
	@Field(value = "ext_link")
	private ExtLlinkEnum extLink;

	/**
	 * 链接名称
	 */
	@Field(value = "link_name")
	private String linkName;

	/**
	 * 链接描述
	 */
	@Field(value = "link_note")
	private String linkNote;

	/**
	 * 链接uri
	 */
	@Field(value = "link_uri")
	private String linkUri;

	/**
	 * 链接排序
	 */
	@Field(value = "link_order")
	private Integer linkOrder;
}
